#ifndef CONTACT_INFO_H
#define CONTACT_INFO_H

#include "http_post.h"

class Contact_Info : public Http_Post
{
	Q_OBJECT
public:
	Contact_Info(Http_Post *parent = 0);
	~Contact_Info();

	const QList<QObject*> &contactList() const { return m_contactList; }

	void postV2();
	QString getNickName(QString userName);
	QString getHeadImgUrl(QString userName);

Q_SIGNALS:
	void error();
	void contact_ok();

protected:
	void finished(QNetworkReply* reply);

private:
	void m_clear();
	void m_post(QString host);

private:
	QList<QObject*> m_contactList;
	QMap<QString, QString> m_map;
};

#endif // CONTACT_INFO_H
